import request from '@/utils/request'

// 查询平台约定协议维护列表
export function listProtocol(query) {
  return request({
    url: '/system/protocol/list',
    method: 'get',
    params: query
  })
}

// 查询平台约定协议维护详细
export function getProtocol(protCode) {
  return request({
    url: '/system/protocol/' + protCode,
    method: 'get'
  })
}

// 新增平台约定协议维护
export function addProtocol(data) {
  return request({
    url: '/system/protocol',
    method: 'post',
    data: data
  })
}

// 修改平台约定协议维护
export function updateProtocol(data) {
  return request({
    url: '/system/protocol',
    method: 'put',
    data: data
  })
}

// 删除平台约定协议维护
export function delProtocol(protCode) {
  return request({
    url: '/system/protocol/' + protCode,
    method: 'delete'
  })
}
